package edu.software.cakehomework.service;

import edu.software.cakehomework.entity.Cake;
import edu.software.cakehomework.entity.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface CakeService {
    Page<Cake> getCakesByType(Type type, Pageable pageable);
    Page<Cake> searchCakes(String keyword, Pageable pageable);
    List<Cake> getPopularCakesByType(Type type);
    List<Cake> getCakesWithDiscount();
    Cake getCakeById(Integer id);
}
